// import fetch from '@/config/fetch'
import {get, post} from "../config/https_method";

/**
 * 经费分页列表
 */
export const getPageBudgetList = data => get('/association/budget/getPageBudgetList', data);

/**
 * 经费总额
 */
export const getBudgetTotal = query => get('/association/budget/getBudgetTotal', query);
/**
 * 获取一个管理员
 */
export const getAdmin = data => get('/association/administrator/getAdminById', data);
/**
 * 删除
 */
export const deleteBudget = data => post('/association/budget/deleteBudget', data);
/**
 * 修改
 */
export const updateAdmin = data => post('/association/administrator/updateAdmin', data);

/**
 * 添加
 */
export const addBudget = data => post('/association/budget/addBudget', data);
